import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from 'pinia'

// 组件引用区
import customCard from './components/custom-card.vue'
import customInterest from './components/custom-interest.vue'
import customAvatar from './components/custom-avatar.vue'
import customInput from './components/custom-input.vue'

export function createApp() {
	const app = createSSRApp(App);
	//组件挂载区
	app.component('custom-input', customInput)
	app.use(Pinia.createPinia());
	app.component('custom-card', customCard)
	app.component('custom-interest', customInterest)
	app.component('custom-avatar', customAvatar)
	return {
		app,
		Pinia,
	};
}